<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

//职位申请记录表
class CreateApplicationRecordsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('application_records', function (Blueprint $table) {
            $table->increments('id');
            $table->timestamps();
            $table->integer('user_id');      //申请人id
            $table->integer('position_id');  //职位id
            $table->tinyInteger('is_pinggu')->default(1);  //是否显示我的评估 1-显示 2-不显示
            $table->tinyInteger('status')->default(0);  //状态 0表示未查看  1表示已查看  2表示同意面试  3表示拒绝
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('application_records');
    }
}
